import http from '@/utils/request'
import request from '@/utils/requestOther'


export default{

   /**
    * 
    * @returns 获取JsonMapWeather属性用于展示
    */
  async geJsonMapWeatherFields(params){
    return await http.get("/api/resource/json/getAllFields",params);
   },
   async addMapping(params){
    return await http.post("/api/resource/json/addMapping",params);
   },
   async editMapping(params){
    return await http.put("/api/resource/json/editMapping",params);
   },
   async removeMapping(params){
    return await http.delete("/api/resource/json/removeMapping",params);
   },
   async list(params){
    return await http.get("/api/resource/json/list",params);
   },
  /**
   * 获取API获取的json与Weather的映射关系
   * */
   async findMapping(params){
    return await http.getRestApi("/api/resource/json/findMapping",params);
   },
}